<?
@include "_conf.php";

if ($g_site_config == "global" || 
    $g_site_config == "global_test")
{
	$sql_server_host	= "localhost:3306";
	$sql_server_user	= "w3m";
	$sql_server_password	= "w3mserviceuser";
	$sql_server_database	= "w3m";
}
if ($g_site_config == "kvv_home")
{
	$sql_server_host	= "localhost";
	$sql_server_user	= "root";
	$sql_server_password	= "1";
	$sql_server_database	= "w3m";
}



$sql_error_message		= "Can not connect to DB server.";


@mysql_connect($sql_server_host, $sql_server_user, $sql_server_password) 
	or die($sql_error_message." Access denied.");
	
@mysql_select_db($sql_server_database) 
	or die($sql_error_message." DB not found.");

mysql_query("SET CHARACTER SET utf8;");
//mysql_query("SET NAMES utf8");
//header('Content-type: text/html; charset="UTF-8"');
?>